           package com.java.diagnostics.visualizer.impl.axes;
           
           import com.java.diagnostics.visualizer.data.axes.UnitConverterDefinition;
           
           public class NormalisingIdentityConverter extends AbstractUnitConverter
           {
             protected boolean normalised = true;
             private UnitConverterDefinition definition;
             private double normalisationOffset;
           
             public NormalisingIdentityConverter(String label, String units, boolean supportsNormalisation)
             {
               this.definition = new UnitConverterDefinitionImpl(units, label, units, supportsNormalisation);
               this.normalisationOffset = 0.0D;
             }
           
             public void setOffset(double offset)
             {
               this.normalisationOffset = offset;
             }
           
             public double convert(double number)
             {
               if (this.normalised) {
                 return number - this.normalisationOffset;
               }
               return number;
             }
           
             public String formatUnconverted(double number)
             {
               return NumberFormatter.prettyString(number);
             }
           
             public UnitConverterDefinition getDefinition()
             {
               return this.definition;
             }
           }

